#ifndef ClassListView_First
#define ClassListView_First
#ifdef __GNUG__
#pragma interface
#endif

#include "CollView.h"
#include "ObjArray.h"

class OrdCollection;

//---- PeClassListView ---------------------------------------------------------

class PeClassListView: public CollectionView {
	OrdCollection *classItems;
	bool hideEmptyClasses;
	bool showInstCount;
public:
	MetaDef(PeClassListView);
	PeClassListView(EvtHandler*, bool icount= FALSE);
	void LoadClasses();
	void ToggleHideEmpty();
	bool HideEmptyClasses()
		{ return hideEmptyClasses; }
	bool SelectClass(Class *cl);
	Class *SelectedClass();
	void DoSelect(Rectangle r, int clicks);
	void DoObserve(int, int what, void* val, Object* op);
};

#endif
